home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_23 / PlaceObject2_448_314 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  1.1 KB  |  52 lines

  1. onClipEvent(enterFrame){
  2.    if(!_root.car.onfloor)
  3.    {
  4.       if(Key.isDown(37))
  5.       {
  6.          _visible = true;
  7.          if(!sound)
  8.          {
  9.             if(_root.sound)
  10.             {
  11.                _root.steamSide.start(0,99999);
  12.                sound = true;
  13.             }
  14.          }
  15.       }
  16.    }
  17.    if(_root.gravityType == "normal")
  18.    {
  19.       if(!Key.isDown(37) or _root.car.onfloor or _root.fake._rotation < -20 or _root.fake._rotation > 20)
  20.       {
  21.          _visible = false;
  22.          if(!_root.f1.sound)
  23.          {
  24.             _root.steamSide.stop();
  25.             sound = false;
  26.          }
  27.       }
  28.    }
  29.    if(_root.gravityType == "reverse")
  30.    {
  31.       if(!Key.isDown(37))
  32.       {
  33.          _visible = false;
  34.          sound = false;
  35.          if(!_root.f1.sound)
  36.          {
  37.             _root.steamSide.stop();
  38.             sound = false;
  39.          }
  40.       }
  41.    }
  42.    _X = _root.fake._x + 30;
  43.    if(_root.gravityType == "normal")
  44.    {
  45.       _Y = _root.fake._y - 14;
  46.    }
  47.    if(_root.gravityType == "reverse")
  48.    {
  49.       _Y = _root.fake._y + 10;
  50.    }
  51. }
  52.